﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="CustomerContactSystem.Core" namespace="CustomerContactSystem.Core.Model">
  <class name="EnquiryCommitmentClosure" table="EnquiryCommitmentClosures">
    <id name="Id">
      <generator class="native"></generator>
    </id>
    <many-to-one name="MonitoredBy" class="User" column="MonitoredById" not-null="true" lazy="false" fetch="join" foreign-key="FK_EnquiryCommitmentClosures_MonitorUsers"></many-to-one>
    <many-to-one name="AssignedTo" class="User" column="AssignedToId" not-null="true" lazy="false" fetch="join" foreign-key="FK_EnquiryCommitmentClosures_AssignedUsers"></many-to-one>
    <property name="Deadline" not-null="true" />
    <property name="Completed" not-null="true" />
  </class>
</hibernate-mapping>